package org.vectrics.recruiter.struts;

import org.apache.log4j.*;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.DynaActionForm;


public class ShowJobAction extends Action {
    private static Category log = Category.getInstance(ShowJobAction.class);
	public static String JOB_PARAM = "job";


	// Intercept 
	public ActionForward execute(ActionMapping mapping,
				 ActionForm form,
				 HttpServletRequest request,
				 HttpServletResponse response)	throws Exception {
		if (form == null) {
			log.info("form is null");
			DynaActionForm dynaForm = (DynaActionForm)form;
		}
		else {
			log.info("Form class = " + form.getClass().getName());
		}

		return (mapping.findForward("success"));
	}
}
